#!/usr/bin/python

__author__  = "Daniel W. Berns"
__mail__    = "firstinfobot@gmail.com"
__version__ = (0,0,1)

"""
  Exploring sys.argv
"""

"""
  call this function from other modules
  argv is a list (non empty list expected)
"""
def execute(argv):
    if argv is None:
       print "argv is None"
    if isinstance(argv,list):
       print "argv is a list"
       print repr(argv)
       for arg in sys.argv:
           print arg
    
import sys

if __name__ == "__main__":
   execute(sys.argv)
